package com.lzy.system.organization.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lzy.exception.BusException;
import com.lzy.system.organization.entity.SysUserMapping;
import com.lzy.system.organization.vo.SysUserMappingVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 用户映射 Mapper 接口
 * </p>
 *
 * @author lcc
 * @since 2023-11-25
 */
@Repository
public interface SysUserBindingMapper extends BaseMapper<SysUserMapping> {

    /**
     * 查询组织结构对于的人员
     * @param page
     * @param keyword
     * @param company_id
     * @param dep_id
     * @return
     */

    public IPage<SysUserMappingVo> getUserList(@Param("page")Page<SysUserMappingVo> page,@Param("keyword") String keyword, @Param("company_id") Long company_id, @Param("dep_id") Long dep_id) throws BusException;
}
